
/// 请求方式枚举
enum BLRequestMethod {
  GET,
  POST,
  DELETE
}

/// 枚举扩展
extension BLRequestMethodExt on BLRequestMethod {

  /// 获取 Method 对应的字符串，注意顺序
  String get name => [
    'GET',
    'POST',
    'DELETE'
  ][this.index];

}